import request from '@/utils/request'

//  列表
export function sendList(query) {
    return request({
        url: '/system/sendRecord/list',
        method: 'get',
        params: query
    })
}

// 详情
export function sendInfo(sendId) {
    return request({
        url: '/system/sendRecord/' + sendId,
        method: 'get'
    })
}

// 新增 
export function addSend(data) {
    return request({
        url: '/system/sendRecord',
        method: 'post',
        data: data
    })
}

// 获取群名称
export function getGroupName(query) {
    return request({
        url: '/system/sendRecord/getGroupName',
        method: 'get',
        params: query
    })
}
